package com.twt.sys.interceptor;


import java.util.ArrayList;
import java.util.List;

public class LoginContext {
    public static final LoginContext INSTANCE = new LoginContext();

    private List<String> loginSessionIds = new ArrayList<String>();
    private LoginContext(){}

    public void addSessionId(String sessionId){
        loginSessionIds.add(sessionId);
    }
    public void removeSessionId(String sessionId){
        loginSessionIds.remove(sessionId);
    }
    public boolean contains(String sessionId){
        return loginSessionIds.contains(sessionId);
    }
}
